package com.wandian.texas.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @date : 2012-10-8, 15:30:48
 * @author: long
 * @email :108232706@qq.com
 * @description: TChatrecord类
 */
public class ChatrecordEntity extends DataObject implements Serializable {
	private static final long serialVersionUID = 1L;
	private int id;
	private int userId;
	private Short type;
	private int toGroupId;
	private int toUserId;
	private String message;
	private Date createDate;

	public ChatrecordEntity() {
		this.type = 0;
	}

	public ChatrecordEntity(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	/**
	 * @return
	 */
	public Short getType() {
		return type;
	}

	/**
	 * @param type
	 */
	public void setType(Short type) {
		this.type = type;
	}

	public int getToGroupId() {
		return toGroupId;
	}

	public void setToGroupId(int toGroupId) {
		this.toGroupId = toGroupId;
	}

	public int getToUserId() {
		return toUserId;
	}

	public void setToUserId(int toUserId) {
		this.toUserId = toUserId;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "com.wandian.texas.entity.Chatrecord[ id=" + id + " ]";
	}

}
